<?php

$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {

    $api->group(['namespace' => 'App\Http\Controllers\Yonghu'], function ($api) {

        //注册
        $api->match(['post', 'get'], 'yonghu/registr', 'YuserController@registr');
        //登录
        $api->match(['post', 'get'], 'yonghu/login', 'YuserController@login');
         
        $api->group(['middleware' => ['jwt.auth','jwt.refresh']], function ($api) {
            
        	

            
        });
        
    });

    
});